<!DOCTYPE html>
<html lang="en">
<head>
    <meta name="layout" content="bocMain"/>
    <title>进件作业系统</title>
</head>

<body>

<header class="header-title">分期业务告知书</header>

<div>
    <input type="hidden" id="token">

    <div class="weui-cells weui-cells_form attachmentBox">
        <div class="weui-cell__bd">
            <div class="weui-uploader">
                <div class="weui-uploader__hd">
                    <p class="weui-uploader__title">点击拍摄/上传分期业务告知书</p>
                </div>
                <div class="weui-uploader__bd">
                    <ul class="weui-uploader__files" id="attachmentUploaderFiles">
                    </ul>

                 <div class="weui-uploader__input-box">
                  <input class="weui-uploader__input" type="file" name="idcardPositive" accept="image/*" multiple
                           id="attachment">
                    </div>
                </div>
            </div>
        </div>
    </div>


    <g:form action="stagingBusinessInformSave" class="myForm">
        <input type="hidden" id="id" name="id" value="${this?.opportunity?.id}">
        <input type="hidden" id="attachmentUrl" name="attachmentUrl">
    </g:form>

    <div class="bigBtn">
        <button class="weui-btn weui-btn_primary" id="submit">下一步</button>
    </div>
</div>
<asset:javascript src="boc/multipleUpload.js"/>

<script>
    $(function () {

        $("#submit").click(function () {
                var attachmentUrl = $("#attachmentUrl").val();
                if (!attachmentUrl) {
                    helpMessage("请上传分期业务告知书");
                    return;
                }
                $(".myForm").submit();
            }
        )

    });

</script>
</body>
</html>